<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.AAL.Model.TransferingRequest"%>
<%@page import="com.AAL.Action.TransferRequestAction"%>
<%@page import="java.util.List"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>


<h3
	style="background-color: #8AC0E9; font-size: 17px; width: 95%; padding: 10px; color: white;">Quản
lý yêu cầu điều phối hàng</h3>
<p style="clear: both;"></p>
<div style="margin: 10px;"><s:form id="form" method="post"
	 theme="simple" cssClass="yform">
	<fieldset style="width: 95%;"><legend
		style="margin-left: 10px; font-weight: bold;">Tìm kiếm</legend>
	<div class="type-text">
	<ul class="form">
		<li class="left">Mã phiếu điều phối</li>
		<li class="right"><s:textfield cssClass="smallInput wide"
			name="transferingRequestIDs" /></li>
		<li class="clr"></li>
		<li class="left">Trạng thái</li>
		<li class="right"><s:select list="listStatusOfTransferingRequest"
			listKey="statusOfTransferingRequestID" listValue="statusName"
			cssClass="smallInput wide" headerKey="0" headerValue="--Chọn trạng thái--"
			name="statusOfTransferingRequestIDs" /></li>
		<li class="clr"></li>
		<li class="left">Chọn thời gian tạo:</li>		
		<li class="clr"></li>
		<li class="left">Từ ngày</li>
		<li class="right"><sj:datepicker label="Ngày tạo"
				readonly="true" cssClass="smallInput wide"
				name="writingDateStart" /></li>
		<li class="clr"></li>
		<li class="left">Đến ngày</li>
		<li class="right"><sj:datepicker label="Ngày tạo"
				readonly="true" cssClass="smallInput wide"
				name="writingDateEnd" /></li>
		<li class="clr"></li>
		<li class="left">Chọn thời gian yêu cầu:</li>		
		<li class="clr"></li>
		<li class="left">Từ ngày</li>
		<li class="right"><sj:datepicker label="Ngày yêu cầu"
				readonly="true" cssClass="smallInput wide"
				name="requirementDateStart" /></li>
		<li class="clr"></li>
		<li class="left">Đến ngày</li>
		<li class="right"><sj:datepicker label="Ngày yêu cầu"
				readonly="true" cssClass="smallInput wide"
				name="requirementDateEnd" /></li>		
		<li class="clr"></li>
		<li class="left">&nbsp;</li>
		<li class="right"><s:url id="searchTransferRequesS1" value="/searchTransferReques" /> <sj:submit
			title="Tìm kiếm" id="lnksearchTransferRequesS1" href="%{searchTransferRequesS1}"
			button="true" value="Tìm kiếm" targets="container"></sj:submit>
			<s:url id="Manager_TransferingRequest1"
			value="/Manager_TransferingRequest" /> <sj:submit title="Danh sách phiếu điều phối"
			id="lnkManager_TransferingRequest1" href="%{Manager_TransferingRequest1}"
			button="true" value="Trở về danh sách" targets="container"></sj:submit>
		</li>
		<li class="clr"></li>
	</ul>

	</div>

	</fieldset>
</s:form></div>


<div style="margin: 10px;">
<fieldset style="width: 95%;"><legend
	style="margin-left: 10px; font-weight: bold;">Danh sách phiếu điều phối tìm được</legend>
<div class="type-text">

<table width="99%" cellpadding="0" cellspacing="0" id="box-table-a"
	summary="Employee Pay Sheet">
	<thead>
		<tr>
			<th width="5%" scope="col">STT</th>
			<th width="5%" scope="col">Mã PDP</th>
			<th width="20%" scope="col">Nhân viên tạo</th>
			<th width="15%" scope="col">Kho nhập</th>
				
			<th width="10%" scope="col">Ngày tạo</th>
			<th width="15%" scope="col">Trạng thái</th>
			<th width="10%" scope="col"></th>
			
		</tr>
	</thead>
	<tbody>
		<%
			int stt = 1;
		%>
		<s:iterator value="listTransferingRequestSearch">		
			<tr>
				<td ><%=stt++%></td>
				<td ><s:property value="transferingRequestID" /></td>
				<td  ><s:property
					value="employeeByCoordinator.account.accountInformation.fullName" /></td>
				<td  ><s:property
					value="toWareHouse.wareHouseName" /></td>				
					<td ><s:date
					name="writingDate" format="dd/MM/yyyy" /></td>
					<td  ><s:property
					value="statusOfTransferingRequest.statusName" /></td>
				<td ><s:url id="transferingRequestViewDetail"
					value="/transferingRequestViewDetail?id=%{transferingRequestID}" /> <sj:a
					title="Thông tin chi tiết" href="%{transferingRequestViewDetail}"
					targets="container" class="link"> Chi tiết
            </sj:a></td>           
            
          
			</tr>
			


			<tr></tr>
			<tr class="footer">

			</tr>
		</s:iterator>
		<tr class="footer">
			<td colspan="2">&nbsp;</td>
			<td align="right">&nbsp;</td>
			<td colspan="3" align="right"><!--  PAGINATION START  -->
			<div class="pagination"><span class="previous-off">&laquo;
			Previous</span> <span class="active">1</span> <a href="#">2</a> <a href="#">3</a>
			<a href="#">4</a> <a href="#">5</a> <a href="#" class="next">Next
			&raquo;</a></div>
			<!--  PAGINATION END  --></td>
		</tr>
	</tbody>
</table>
</div>

</fieldset>
</div>
